#ifndef ITEMWIZARD_H
#define ITEMWIZARD_H

#include <QtGui>
class NewItemPage;
class NewFilesPage;

class ItemWizard : public QWizard {
  Q_OBJECT
public:
  enum Page{
    Go_Page,
    Codes_Page,
    Statics_Page,
    Template_Page,
    Other_Page
  };
  explicit ItemWizard(QWidget* parent = 0);
  void disable(int index);
private:
  NewItemPage* firstpage;
};

/****************************
*****************************/

class NewItemPage : public QWizardPage {
  Q_OBJECT
public:
  explicit NewItemPage(QWidget *parent = 0);
  void disable(int i);
private:
  QComboBox* filetype;
};

/****************************
*****************************/

class NewFilesPage : public QWizardPage {
  Q_OBJECT
public:
  explicit NewFilesPage(QWidget *parent = 0);
  bool validatePage();
  void initializePage();
  void setErrorText(QString text);
  void setLabelText(QString text);
  void setAllowDot(bool ok);
private:
  QLabel* folderNameLabel;
  QLabel* errorLabel;
  bool allowDot;
};

#endif // ITEMWIZARD_H
